package com.zlp.dto.test;

import lombok.Data;

import java.io.Serializable;


@Data
public class SupplierSkuDTO implements Serializable {

    /**
     *  商品名称
     */
    private String skuName;


    /**
     *  商品编号
     */
    private String skuNo;

    private String cusSkuNo;

    /**
     *  已售数量
     */
    private Integer soldNum;

    /**
     *  上架状态 10 上架中、20下架中
     */
    private Integer status;

    /**
     *  库存
     */
    private Integer stockNum;

    
    /**
     *  对象转换
     * @author ZouLiPing
     * @param lhSupplierSkuResp 对象转换
     * @date 2022/10/8 13:55
     * @return com.zlp.dto.test.SupplierSkuDTO
     */
    public static SupplierSkuDTO convertSupplierSku(LhSupplierSkuResp lhSupplierSkuResp){
        SupplierSkuDTO supplierSkuDTO = new SupplierSkuDTO();
        supplierSkuDTO.setSkuName(lhSupplierSkuResp.getSkuName());
        supplierSkuDTO.setSkuNo(lhSupplierSkuResp.getSkuNo());
        supplierSkuDTO.setStockNum(lhSupplierSkuResp.getStock());
        return supplierSkuDTO;
    }

}
